package com.first.wchat;

import com.first.wchat.connect.udp.UDPConnectSevice;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class AutoStartRecevier extends BroadcastReceiver{

	@Override
	public void onReceive(Context ctx, Intent intent) {
		String action = "android.intent.action.BOOT_COMPLETED";
		if(intent.getAction().equals(action))
		{
			Intent sIntent = new Intent(ctx, UDPConnectSevice.class);  
			ctx.startService(sIntent);
		}
	}

}
